home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d2 / pkl103.arc / PKLITE.DOC < prev    next >
Text File  |  1991-01-16  |  31KB  |  1,359 lines

  1.  
  2.                                  PKLITE (tm)
  3.  
  4.                        The Executable File Compressor
  5.  
  6.  
  7.  
  8.             Topic                                                     Page
  9.  
  10.      I.  Introduction to PKLITE . . . . . . . . . . . . . . . . . . . . 2
  11.          1.  PKLITE Overview  . . . . . . . . . . . . . . . . . . . . . 2
  12.          2.  System Requirements. . . . . . . . . . . . . . . . . . . . 3
  13.          3.  Technical Support. . . . . . . . . . . . . . . . . . . . . 3
  14.          4.  Registration Information . . . . . . . . . . . . . . . . . 4
  15.          5.  Software License . . . . . . . . . . . . . . . . . . . . . 5
  16.  
  17.  
  18.      II. Using PKLITE . . . . . . . . . . . . . . . . . . . . . . . . . 6
  19.          1.  Explanation of the Command Line. . . . . . . . . . . . . . 6
  20.          2.  PKLITE options . . . . . . . . . . . . . . . . . . . . .  10
  21.               -a  Always compress files with internal overlays  . . .  10
  22.               -b  Make backup .BAK file of original . . . . . . . . .  11
  23.               -e  Extra compression method  . . . . . . . . . . . . .  12
  24.               -l  Display software license screen . . . . . . . . . .  12
  25.               -n  Never compress files with overlays. . . . . . . . .  13
  26.               -o  Overwrite output file if it exists. . . . . . . . .  14
  27.               -r  Remove any extra .EXE data. . . . . . . . . . . . .  15
  28.               -u  Update file time/date to current time/date. . . . .  16
  29.               -x  Expand a compressed file. . . . . . . . . . . . . .  17
  30.  
  31.  
  32.      III. Programs That Should Not Be Compressed. . . . . . . . . . .  19
  33.  
  34.      IV.  PKLITE Error Messages . . . . . . . . . . . . . . . . . . .  21
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.                                      1
  60.  
  61.      I.  INTRODUCTION TO PKLITE
  62.      ─────────────────────────────────────────────────────────
  63.  
  64.      This section contains an introduction to the PKLITE data
  65.      compression software.
  66.  
  67.  
  68.  
  69.      1.  PKLITE OVERVIEW
  70.      ─────────────────────────────────────────────────────────
  71.  
  72.      PKLITE is an easy to use file compression program.  It increases
  73.      your valuable disk space by compressing executable files (with
  74.      .EXE and .COM extensions).  PKLITE will compress these executable
  75.      files so they will require much less disk space yet will still
  76.      run normally.
  77.  
  78.      PKLITE compresses your files much like PKZIP, but it adds a small
  79.      amount of extraction code at the beginning of the executable
  80.      file.  When you run an application that has been compressed with
  81.      PKLITE, the program will automatically be expanded into memory
  82.      and run.  The compressing process does not change the operation
  83.      of the program at all, it merely reduces the disk space required
  84.      to store it.  No additional memory is needed to run most programs
  85.      compressed with PKLITE.
  86.  
  87.      PKLITE also has the ability to expand your files back to their
  88.      original size.
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.                                      2
  119.  
  120.      2.  SYSTEM REQUIREMENTS
  121.      ────────────────────────────────────────────────────────
  122.      PKLITE will run on any IBM PC or compatible with DOS 2.0 or
  123.      higher.  Running a program that has been compressed with PKLITE
  124.      requires a maximum of 4K extra memory overhead to expand the
  125.      application in memory.  Memory available to the application
  126.      remains the same as before it was compressed.
  127.  
  128.  
  129.  
  130.      3.  TECHNICAL SUPPORT
  131.      ─────────────────────────────────────────────────────────
  132.  
  133.      If you have any questions regarding PKLITE or any of the other
  134.      PKWARE programs, please call our technical support staff for
  135.      assistance.  Our office hours are Monday through Friday, 9:00am
  136.      to 5:00pm central time.  You can also leave a message on our
  137.      24-hour PKWARE Support BBS, or mail your comments and questions
  138.      to the PKWARE office.  The PKWARE address and telephone numbers
  139.      are listed below.
  140.  
  141.  
  142.           PKWARE, Inc.
  143.           7545 North Port Washington Road
  144.           Suite 205
  145.           Glendale, WI  53217-3422
  146.  
  147.           Voice (9am to 5pm CT):  (414)  352-3670
  148.  
  149.           Fax:  (414)  352-3815
  150.  
  151.           PKWARE Support BBS (Available 24 hours): (414)  352-7176
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.                                      3
  178.  
  179.      4.  REGISTRATION INFORMATION
  180.      ────────────────────────────────────────────────────────
  181.  
  182.      If you find PKLITE fast, easy, and convenient to use, you can
  183.      become a registered user.  As a registered user, you will receive
  184.      a diskette with the current version of PKLITE and a printed
  185.      manual for the software.  You will also receive, when available,
  186.      a free upgrade of PKLITE.
  187.  
  188.      Please state the version number of the software you are presently
  189.      using.  For registration information, including price
  190.      information, contact PKWARE at the following location:
  191.  
  192.  
  193.              PKWARE, Inc.
  194.              7545 North Port Washington Road
  195.              Suite 205
  196.              Glendale, WI  53217-3422
  197.  
  198.              (414) 352-3670
  199.              (414) 352-3815  FAX
  200.              (414) 352-7176  BBS
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.                                      4
  237.  
  238.      5.  SOFTWARE LICENSE
  239.      ─────────────────────────────────────────────────────────
  240.  
  241.      The software license agreement is shown below.
  242.  
  243.  
  244.      PKLITE (tm)  Executable File Compressor   Version 1.00
  245.      Copyright 1990 PKWARE, Inc.  All Rights Reserved
  246.  
  247.  
  248.      You are free to use, copy and distribute PKLITE for noncommercial
  249.      use IF:
  250.  
  251.       - No fee is charged for use, copying or distribution.
  252.  
  253.       - It is not modified in any way.
  254.  
  255.      Usage of the software to create compressed executables for
  256.      commercial software requires registration of the PKLITE
  257.      Professional Package (tm) for $146.  This version includes an
  258.      extra compression option so that compressed executables cannot be
  259.      uncompressed by PKLITE.
  260.  
  261.      PKWARE hereby disclaims all warranties relating to this
  262.      software, whether express or implied, including without
  263.      limitation any implied warranties of merchantability or fitness
  264.      for a particular purpose. PKWARE will not be liable for any
  265.      special, incidental, consequential, indirect or similar damages
  266.      due to loss of data or any other reason, even if PKWARE or an
  267.      agent of PKWARE has been advised of the possibility of such
  268.      damages.  In no event shall PKWARE's liability for any damages
  269.      ever exceed the price paid for the license to use software,
  270.      regardless of the form of the claim.  The person using the
  271.      software bears all risk as to the quality and performance of the
  272.      software.
  273.  
  274.      If you find PKLITE easy, and convenient to use, a registration of
  275.      $46.00 would be appreciated.  Registration includes one free
  276.      upgrade to the software and a printed manual.  Please state the
  277.      version of the software that you currently have.
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.                                      5
  296.  
  297.      II.  USING PKLITE
  298.      ─────────────────────────────────────────────────────────
  299.  
  300.      This section describes the command line structure of PKLITE and
  301.      explains the options.
  302.  
  303.  
  304.  
  305.      1.  EXPLANATION OF THE COMMAND LINE
  306.      ─────────────────────────────────────────────────────────
  307.  
  308.      PKLITE is an easy to use file compression program.  All of the
  309.      commands used with PKLITE are entered on the command line at the
  310.      DOS prompt.  The command options used with PKLITE are explained
  311.      in detail in the following section, along with examples.
  312.  
  313.  
  314.      The PKLITE command line structure is shown below.
  315.  
  316.  
  317.      PKLITE  [options] [d:][path] Infile  [[d:][path] Outfile]
  318.  
  319.  
  320.           PKLITE = The PKWARE executable compression program.
  321.  
  322.           options = The different PKLITE options that you can specify.
  323.  
  324.           [d:] [path] Infile = The name and path location of the
  325.                executable file being compressed (or expanded),
  326.                also know as the source file.
  327.  
  328.           [d:] [path] Outfile = The name and path location of the
  329.                destination file you want to rename or to
  330.                relocate the compressed or expanded file.
  331.  
  332.  
  333.      NOTE:  Parameters listed in [ ] are optional.
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.                                      6
  355.  
  356.      EXAMPLES:
  357.  
  358.      A simple example is shown below.
  359.  
  360.      C:\DOS> PKLITE  attrib.exe
  361.  
  362.      In this example the file attrib.exe will be compressed and the
  363.      compressed version of the file will overwrite the original
  364.      version.  After you type the command shown above, PKLITE will
  365.      display the following information on the screen.
  366.  
  367.  
  368.      PKLITE (tm)  Executable File Compressor.  Version 1.00
  369.      Copyright 1990  PKWARE Inc.  All Rights Reserved.
  370.  
  371.      Compressing  attrib.exe
  372.      Original Size: 10656  Compressed Size: 6790   Ratio: 36.3
  373.  
  374.  
  375.      After a file is compressed with PKLITE, it will display several
  376.      pieces of important information.  PKLITE will list the name of
  377.      the original file, original size of the file, the compressed
  378.      size, and the compression ratio.  The output filename and
  379.      location will also be listed if they are different than the
  380.      original filename and location.  An example is shown below.
  381.  
  382.  
  383.      The following example illustrates the use of an output file to
  384.      change the name and location of the file after it is compressed.
  385.  
  386.  
  387.      C:\> PKLITE  light.exe  A:smlight.exe
  388.  
  389.      PKLITE (tm)  Executable File Compressor.  Version 1.00
  390.      Copyright 1990  PKWARE Inc.  All Rights Reserved.
  391.  
  392.      Compressing: LIGHT.EXE into file A:SMLIGHT.EXE
  393.      Original Size: 18466   Compressed Size: 12299   Ratio: 33.4
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.                                      7
  414.  
  415.      Listed below is a summary of important facts to keep in mind
  416.      while using PKLITE.
  417.  
  418.      -The commands can be typed using either upper case or lower case.
  419.  
  420.      -All command options for the software must be preceded by a '-'
  421.       character or the MS-DOS switch character (usually '/').
  422.  
  423.      -Options can be combined (i.e. "-o -b" or "-ob").
  424.  
  425.      -If no extension for the source file is specified, PKLITE will
  426.       automatically compress any files with that particular name and a
  427.       .EXE or .COM extension.
  428.  
  429.      -If no destination file is listed on the command line, the
  430.       compressed file will have the same name as the source file and
  431.       will be located in the same directory (i.e. it will overwrite
  432.       the source file).
  433.  
  434.      -Typing PKLITE on the command line with no options, will bring up
  435.       a help screen listing all the program options.
  436.  
  437.  
  438.       CAUTION
  439.  
  440.           It is very important that you do not use PKLITE on original
  441.           program diskettes.  You should always make a copy of the
  442.           original diskettes that are supplied with an application,
  443.           and work only from the copies.  All original diskettes
  444.           should be kept in safe place.
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.                                      8
  473.  
  474.      The following table lists all the options available with PKLITE.
  475.      A brief summary is also given in the table.  The options are
  476.      explained in detail, along with programming examples in the
  477.      following section.
  478.  
  479.  
  480.  
  481.                         PKLITE COMMAND OPTIONS
  482.          ───────────────────────────────────────────────────
  483.          Option      Summary
  484.  
  485.            -a        Always compress files with internal overlays.
  486.  
  487.            -b        Make backup .BAK file of original.
  488.  
  489.            -e        Extra compression method. (Commercial Version)
  490.  
  491.            -l        Display software license screen.
  492.  
  493.            -n        Never compress files with overlays.
  494.  
  495.            -o        Overwrite output file if it exists.
  496.  
  497.            -r        Remove extra .EXE data.
  498.  
  499.            -u        Update file time/date to current time/date.
  500.  
  501.            -x        Expand a compressed file.
  502.  
  503.          ────────────────────────────────────────────────────
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.                                      9
  532.  
  533.      2.  PKLITE OPTIONS
  534.      ─────────────────────────────────────────────────────────
  535.  
  536.      The PKLITE options are described below.
  537.  
  538.  
  539.      -a   Always Compress Files With Internal Overlays
  540.  
  541.        This option is used to tell PKLITE to always compress files even
  542.        though they use internal overlays.  Programs which use overlays
  543.        loaded from .EXE files, may not run normally when in compressed
  544.        form.  PKLITE will detect if a program file contains internal
  545.        overlays.  It will prompt you for confirmation before it
  546.        compresses any files with overlays if you do not use the -a
  547.        option.
  548.  
  549.          C:\> PKLITE  -a  *.EXE
  550.  
  551.        In the example shown above, PKLITE will compress all of the .EXE
  552.        files in the current directory even if internal overlays are
  553.        detected.  You will not be prompted for confirmation before any
  554.        files are compressed.  The files will overwrite the original
  555.        files since there is no destination directory specified.
  556.  
  557.  
  558.        NOTE:  Overlay data is not compressed by PKLITE, however the load
  559.        image data located before the overlay data is compressed.  Some
  560.        programs require that the overlay data in the .EXE file be
  561.        located at a specified point in the .EXE file.  These programs
  562.        will not run correctly when compressed with PKLITE.  Programs
  563.        that do not run correctly can be returned to their original state
  564.        with the -x option.
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.                                      10
  591.  
  592.      -b   Make Backup .BAK File of Original
  593.  
  594.        This option will create a backup file of the original
  595.        uncompressed file with a .BAK extension.  The file will be
  596.        located in the same directory as the original file.
  597.  
  598.        If you use the -b option when a file with the same name as the
  599.        source file and a .BAK extension already exists at the
  600.        destination, it will be overwritten.
  601.  
  602.        If an output file is specified with the -b option, the -b option
  603.        will be ignored.
  604.  
  605.          C:\GAMES> PKLITE  -b  GAME.EXE
  606.  
  607.        In the example shown above, the program GAME.EXE will be
  608.        compressed, and a backup of the original file called GAME.BAK
  609.        will be created and located in the GAMES directory.
  610.  
  611.  
  612.        You can also retain the original file in its uncompressed state
  613.        by specifying a destination file on the command line by using the
  614.        [[d:][path] Outfile] option.  By using this feature, you rename
  615.        the compressed file and retain the source file in its original
  616.        form.
  617.  
  618.          C:\PK> PKLITE  PROG.COM  PROGCMP.COM
  619.  
  620.        In this example, the file PROG.COM will be compressed and the
  621.        compressed version of the file will be named PROGCMP.COM.  By
  622.        renaming the file, the uncompressed version of the file
  623.        (PROG.COM) will be retained in its original form.
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.                                      11
  650.  
  651.      -e   Use Extra Compression Method
  652.  
  653.        (* Option available only in PKLITE Professional version *)
  654.  
  655.        This option is used to produce the smallest executable files.  It
  656.        uses a slightly different algorithm, which also scrambles the
  657.        excutable file.  This scrambling makes the executable data more
  658.        resistant to disassembly or "reverse engineering" procedures.
  659.        After a file is compressed using this method, it cannot be
  660.        expanded to match the original executable file.  If you attempt
  661.        to expand it using the -x option, PKLITE will return a message
  662.        stating the file cannot be expanded.  This option is ideal for
  663.        software developers who wish to distribute their programs in
  664.        compressed form.
  665.  
  666.          C:\DATA> PKLITE  -e  TEST.EXE  A:
  667.  
  668.        In the example shown above, PKLITE will use the extra compression
  669.        method to compress TEST.EXE.  The compressed file will be located
  670.        on the A: drive.
  671.  
  672.  
  673.      -l   Display software license screen
  674.  
  675.        This option is used to display the PKLITE software license
  676.        agreement.  It is also printed on page 5 of this manual.  To
  677.        display the license agreement, type the following on the command
  678.        line.
  679.  
  680.          C:\> PKLITE  -l
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.                                      12
  709.  
  710.      -n   Never Compress Files With Overlays
  711.  
  712.        This option is used to tell PKLITE to never compress files that
  713.        use overlays.  Programs which use overlays loaded from .EXE
  714.        files, may not run normally when in compressed form.  PKLITE will
  715.        detect when a program file contains overlays and will
  716.        automatically skip it.  If you do not use this feature, PKLITE
  717.        will prompt you for confirmation before compressing any files
  718.        with overlays.
  719.  
  720.          C:\DATA> PKLITE  -n  *.EXE  C:\DATA\COMP
  721.  
  722.        In the example shown above, PKLITE will compress all of the .EXE
  723.        files in the DATA directory as long as they do not use overlays.
  724.        The compressed files will be placed in the C:\DATA\COMP
  725.        destination directory.
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.  
  737.  
  738.  
  739.  
  740.  
  741.  
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.                                      13
  768.  
  769.      -o   Overwrite Output File if it Exists
  770.  
  771.        This option is used when you specify a destination file (output
  772.        file) on the command line.  If a file with the same name as the
  773.        output file that you have specified already exists at the
  774.        destination, it will automatically be overwritten when you use
  775.        this command.  If you do not use this option, PKLITE will prompt
  776.        you for confirmation before it overwriting any existing output
  777.        file.
  778.  
  779.          C:\PKWARE> PKLITE  -o  PROG.EXE  A:\TINYPROG.EXE
  780.  
  781.        In the example shown above, PKLITE will compress PROG.EXE and
  782.        will locate the compressed version of the program on the A:
  783.        drive.  The compressed version of the program will be named
  784.        TINYPROG.EXE.  If a file called TINYPROG.EXE already exists on
  785.        the A: drive, it will automatically be overwritten.
  786.  
  787.        NOTE:  The -o option is only necessary if a output file is
  788.        specified.
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.                                      14
  827.  
  828.      -r   Remove Extra .EXE Data
  829.  
  830.        This option will compress a file and discard any data appended
  831.        after the load image data.  This data could be setup information,
  832.        overlay data, or debugging information.
  833.  
  834.        The -r option should be used only when you are sure there is
  835.        extra data in the file located after the load image data.  Only
  836.        use this option if you know you will no longer need this extra
  837.        data.  It may delete overlay or other important data.
  838.  
  839.          C:\NET>  PKLITE  -r  *.EXE
  840.  
  841.        This example will compress all of the files in the C:\NET
  842.        directory that have a .EXE extension.  It will also discard any
  843.        data appended to the files.
  844.  
  845.  
  846.        CAUTION
  847.  
  848.           This option should be used with caution.  It can endanger the
  849.           operation of the files being compressed.
  850.  
  851.           THE EXTRA DATA CANNOT BE RESTORED WITH THE -X.
  852.  
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.                                      15
  886.  
  887.      -u   Update File Time/Date to Current Time/Date
  888.  
  889.        This option will assign the current time and date to the file
  890.        that you are compressing.  If you do not use this option, the
  891.        time and date of the compressed file will be set to the time and
  892.        date of the original file by default.
  893.  
  894.          C:\PKWARE> PKLITE  -u  FILE.COM  B:
  895.  
  896.        In the example shown above, the program FILE.COM will be
  897.        compressed and the compressed version of the program will be
  898.        located on the B: drive.  The compressed file will retain the
  899.        same name (FILE.COM) as the original file.  However, the time and
  900.        date will be updated to the current time and date at the time the
  901.        file was compressed.
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944.                                      16
  945.  
  946.      -x   Expand a Compressed File
  947.  
  948.        This option will expand any files you have compressed with
  949.        PKLITE.  When you use this option, the file will be returned to
  950.        its original size.  You can rename and/or relocate a file when
  951.        you expand it by using the [[d:][path] Outfile] option on the
  952.        command line.
  953.  
  954.          C:\> PKLITE  -x  FILE.EXE  A:
  955.  
  956.        In the example shown above, the compressed file FILE.EXE will be
  957.        expanded and the expanded file will be located on the A: drive.
  958.  
  959.        After a compressed file is expanded, PKLITE will display several
  960.        important facts.  PKLITE will list the name of the compressed
  961.        file, original (compressed) size of the file, and the expanded
  962.        size of the file.  The output file and location will also be
  963.        listed if appropriate.  An example is shown below.
  964.  
  965.          C:\> PKLITE  -x FILE1.EXE  FILE2
  966.  
  967.        Expanding: FILE1.EXE into file FILE2.EXE
  968.        Original Size: 12299    Expanded Size: 18466
  969.  
  970.  
  971.        NOTE:  The expand option can be used with the following options:
  972.  
  973.           -b  Create Backup file
  974.           -o  Overwrite option
  975.           -u  Update time/date
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.                                      17
  1004.  
  1005.      When the -x option is used with the -b option, a backup of the
  1006.      compressed version of the file will be created with a .BAK
  1007.      extension.
  1008.  
  1009.      When the -x option is used with the -o option, PKLITE will
  1010.      overwrite any same-named files without prompting you for
  1011.      confirmation.
  1012.  
  1013.      You can also use the -x option along with the -u Update option to
  1014.      update to the current time and date when expanding a file.  (If
  1015.      you used the -u Update time/date option when you compressed the
  1016.      program, then when you expand it, it will retain the new time and
  1017.      date.  The time/date does not return to the original value.)
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.                                      18
  1063.  
  1064.      III.  PROGRAMS THAT SHOULD NOT BE COMPRESSED
  1065.      ─────────────────────────────────────────────────────────
  1066.  
  1067.      PKLITE can compress most executable files.  However, there are
  1068.      some applications that cannot be compressed, or do not run
  1069.      correctly when compressed.  The following is a sample list of
  1070.      such programs.
  1071.  
  1072.  
  1073.      CV.EXE    Microsoft Codeview debugging program.
  1074.                When run in compressed form, the program returns:
  1075.                Invalid format in CV.EXE.
  1076.  
  1077.                The program does a run time check on the .EXE file, and
  1078.                in compressed form the error is reported.  PKLITE
  1079.                cannot detect this and compresses the file without any
  1080.                warnings.
  1081.  
  1082.  
  1083.      C2.EXE    Part of Microsoft C 6.00 compiler.
  1084.                When run in compressed form it reports:
  1085.                   Overlay not found.
  1086.  
  1087.                This is an example of a program with internal overlays
  1088.                where the overlay manager works incorrectly with the
  1089.                compressed .EXE file.  When compressing with PKLITE,
  1090.                the overlay data will be detected and the user will be
  1091.                prompted as to whether this file should be compressed.
  1092.  
  1093.  
  1094.      FOXPRO.EXE   FoxPro 1.00 - 1.02 Database program.
  1095.  
  1096.                This program contains internal overlays.  It will not
  1097.                run correctly when in compressed form.
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.                                      19
  1122.  
  1123.      PIFEDIT.EXE  Microsoft Windows PIF editing program.
  1124.  
  1125.                PKLITE cannot compress any Microsoft Windows executable
  1126.                files.  PKLITE detects whether the file being
  1127.                compressed is a Windows application, and will not
  1128.                attempt to compress it.
  1129.  
  1130.  
  1131.      MAKEINI.EXE  OS/2 program.
  1132.  
  1133.                PKLITE cannot compress any OS/2 executable files.
  1134.                PKLITE detects whether the file being compressed is an
  1135.                OS/2 application, and will not attempt to compress it.
  1136.  
  1137.  
  1138.      Programs that modify the executable file.
  1139.  
  1140.                Programs that modify the load image data in a
  1141.                executable file will not work correctly in the
  1142.                compressed state.  Many programs have setup programs
  1143.                that modify the executable file itself.  An example of
  1144.                this would be the PUTAV program in PKZIP version 1.10.
  1145.                If run on a compressed version of PKZIP, the message
  1146.                "Error in: PKZIP.EXE" will be displayed.  The PKZIP
  1147.                program should be expanded to its original size with
  1148.                the -x option before running PUTAV.  After installing
  1149.                the AV, PKZIP may be recompressed.
  1150.  
  1151.                Programs that modify the extra overlay data or data
  1152.                stored at the end of the .EXE file may run correctly in
  1153.                compressed form, since only the load image data is
  1154.                compressed by PKLITE.  StupenDOS version 2.0 is an
  1155.                example of such a program.  Setup information is
  1156.                appended to the .EXE file.  Therefore, saving the setup
  1157.                works correctly with StupenDOS even when in compressed
  1158.                form.
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.                                      20
  1181.  
  1182.      IV.  PKLITE ERROR MESSAGES
  1183.      ─────────────────────────────────────────────────────────
  1184.  
  1185.      The following error messages may appear when using PKLITE.  A
  1186.      brief explanation of each message along with possible solutions
  1187.      is listed below.  The DOS errorlevel value returned with each
  1188.      error is also listed.
  1189.  
  1190.      1  Syntax Error
  1191.  
  1192.           This error appears when the PKLITE command line you have
  1193.           entered contains a syntax error.  When this occurs, PKLITE
  1194.           will print the help screen showing all the program options
  1195.           on the monitor.
  1196.  
  1197.      2  File extension must be EXE or COM
  1198.  
  1199.           The file you have attempted to compress does not have a .EXE
  1200.           or .COM extension.  If the file is in fact an executable
  1201.           file, you can rename the file with a .EXE or .COM extension
  1202.           and then compress it.
  1203.  
  1204.      3  Cannot open input file
  1205.  
  1206.           The file you have attempted to compress cannot be opened by
  1207.           PKLITE.  Either a disk error occurred, or the file is locked
  1208.           by another application.  You must make sure it is a true
  1209.           executable file.
  1210.  
  1211.      4  Could not open output file
  1212.  
  1213.           PKLITE could not create the output file.  Either a disk
  1214.           error has occurred, or the file is locked by another
  1215.           application.  If you have specified an output file, make
  1216.           sure it is a valid filename and location.
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.                                      21
  1240.  
  1241.      5  Write error
  1242.  
  1243.           An error has occurred in writing a file to disk.  PKLITE is
  1244.           not able to write to a necessary file.  Either a disk error
  1245.           has occurred, or the file is locked by another application.
  1246.  
  1247.      6  Disk full error
  1248.  
  1249.           There is not enough disk space available on the destination
  1250.           drive for the file being created.  PKLITE never deletes the
  1251.           original file until it is finished writing the compressed
  1252.           file, therefore, there must be enough free disk space for
  1253.           the compressed file and the original file.  Try to free up
  1254.           more disk space.
  1255.  
  1256.      7  Read error
  1257.  
  1258.           PKLITE is not able to read a specified file.  Check the
  1259.           file;  it may be corrupted.
  1260.  
  1261.      8  Create error
  1262.  
  1263.           The named file could not be created.  Check the output
  1264.           directory; it may be invalid or full.
  1265.  
  1266.      9  Memory error
  1267.  
  1268.           There is insufficient memory available to process the
  1269.           command.  Try making more memory available.  PKLITE requires
  1270.           a minimum of 85K memory.
  1271.  
  1272.      10  Cannot compress file into itself
  1273.  
  1274.           The file being compressed and the output file are the same.
  1275.           When specifying an output file, make sure the output file is
  1276.           not the same as the input file.
  1277.           Incorrect:  PKLITE   pat.exe  pat
  1278.           Correct:    PKLITE   pat.exe
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297.  
  1298.                                      22
  1299.  
  1300.      11  EXE header error
  1301.  
  1302.           The header information of the file contains too much
  1303.           information to be compressed.  If memory is limited,
  1304.           increasing the amount of memory available to PKLITE may
  1305.           help.
  1306.  
  1307.      12  No extract code error
  1308.  
  1309.           You are attempting to expand a file (with -x) but the
  1310.           extract code is corrupted or missing.  Make sure the file
  1311.           has been compressed with PKLITE.
  1312.  
  1313.      13  Data error
  1314.  
  1315.           An error has been detected in the compressed data.  The file
  1316.           is corrupted.
  1317.  
  1318.      14  Compressing many files into one file error
  1319.  
  1320.           You are attempting to compress multiple files into one
  1321.           output file.  For example:  PKLITE  *.exe  file.exe.
  1322.           Correct the command line.
  1323.  
  1324.      15  Output wildcards error
  1325.  
  1326.           The output path/file cannot contain any wildcard characters
  1327.           ('*' or '?').  Correct the command line.
  1328.  
  1329.      MS-DOS, Codeview, C Optimizing Compiler, Windows and OS/2 are
  1330.      trademarks or registered trademarks of Microsoft Corp.
  1331.      Foxpro is a trademark of Fox Software.
  1332.      PKZIP, PKUNZIP are registered trademarks of PKWARE, Inc.
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357.                                      23
  1358.  
  1359.